<template>
  <div class="coupon">
    <div class="main">
      <div>
        ￥<span class="price">{{ price }}</span>
      </div>
      <div>满{{ limitPrice }}减{{ price }}</div>
    </div>
    <div class="recv">立即领取</div>
  </div>
</template>

<script>
export default {
  name: "Coupon",
  props: ["price", "limitPrice"],
};
</script>

<style lang="scss" scoped>
.coupon {
  width: 3rem;
  height: 1.5rem;
  background: #fff1f1;
  border-radius: 3px;
  color: #ff615e;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.0533rem;

  .main {
    padding-left: .0533rem;
    .price {
      font-size: 0.7467rem;
    }
  }
  .recv {
    writing-mode: vertical-rl;
  }
}
</style>